<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class Setting extends Controller
{
    public function get($name)
    {
        return $this->getSetting($name) ?: [];
    }

    public function post(Request $request, $name)
    {
        return $this->saveSetting($name, $request->info);
    }
}
